package com.lejin.order;

import com.lejin.order.util.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class OrderApp {
    public static void main(String[] args) {
        SpringApplication.run(OrderApp.class,args);
    }
    @Bean
    public IdWorker idwork(){
        IdWorker idWorker = new IdWorker();
        return idWorker;
    }
}
